#include "inputCommand.h"
#include <string.h>


struct inputCommand* findInputCommandByName(char *name,struct inputCommand*phead)
{
    struct inputCommand *tmp = phead;
    if(phead == NULL)
    {
        return NULL;
    }else
    {
        while( tmp != NULL)        
        {
            if(strcmp(tmp -> commandName,name) == 0)
            {
                return tmp;
            }
            tmp = tmp -> Next;            
        }
        return NULL;
    }

}

